<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
</head>

<!-- table -->
<link rel="stylesheet" href="/css/pure/pure_table_ui.css">
<link rel="stylesheet" href="/css/pure/pure_table_comp.css">

<body>


<table class="ui-table">
    <thead>
    <tr>
        <th>序号</th>
        <th>班级</th>
        <th>图片</th>
        <th>班级课程id</th>
        <th>创建时间</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="info,infoStat : ${list}" >
        <td th:text="${infoStat.index}"></td>
        <td th:text="${info.name}"></td>
        <td th:text="${info.imgUrl}"></td>
        <td th:text="${info.classLessonId}"></td>
        <td th:text="${#dates.format(info.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
        <td th:if="${info.status == 0}">未开始</td>
        <td th:if="${info.status == 1}">进行中</td>
        <td th:if="${info.status == 2}">已结束</td>
        <td th:if="${info.status != 0}"><a th:href="@{/student/lessonProcessInfo(id=${info.id})}">查看</a></td>
        <td th:if="${info.status == 0}"><a class="pure-button" th:onclick="activeLesson([[${info.id}]],[[${info.name}]])">启动课程</a></td>
    </tr>
    </tbody>
</table>


</body>

<script>

</script>

</html>